package model

import (
	"time"
)

type AuScratchCard struct {
	Cid        int       `xorm:"not null pk autoincr INT(11)"`
	CardNo     string    `xorm:"not null unique(idx_sc_card_no_order_id) VARCHAR(32)"`
	AId        int       `xorm:"not null INT(11)"`
	Price      float64   `xorm:"not null DOUBLE(10,2)"`
	OrderId    int       `xorm:"not null unique(idx_sc_card_no_order_id) INT(11)"`
	State      int       `xorm:"not null TINYINT(1)"`
	UseState   int       `xorm:"not null TINYINT(1)"`
	Createtime time.Time `xorm:"not null DATETIME"`
	Adopttime  time.Time `xorm:"not null DATETIME"`
}
